package com.chinaunicom.structure.decorator;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2022/7/28 15:58
 * Description: 具体装饰
 */
public class Bacon extends Garnish{
    public Bacon(FastFood fastFood, float price) {
        super(fastFood, price);
    }


    @Override
    public float cost() {
        return super.cost() + this.price;
    }
}
